﻿using System;

namespace diantou.web.ajax.admin
{
    /// <summary>
    /// 比赛提交调用
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class contestJudge : adminHandle<contestJudge>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="judgeId"></param>
        /// <param name="onReturn"></param>
        /// <returns></returns>
        public void ReJudge(int judgeId, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.dataAccess.tcpCall.contestJudge.reJudge(judgeId, onReturn);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="onReturn"></param>
        /// <returns></returns>
        public void ReJudges(int[] ids, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            diantou.dataAccess.tcpCall.contestJudge.reJudge(ids, onReturn);
        }
        /// <summary>
        /// 检测测试提交集合状态
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public diantou.dataModel.judgeState[] CheckJudges(int[] ids)
        {
            return diantou.dataAccess.tcpCall.contestJudge.checkJudges(ids);
        }
    }
}